1 using UnityEngine;
2
3 namespace
ProceduralToolkit.Examples.Primitives
4 {
5     
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter))]
6     
public class Octahedron : MonoBehaviour
7     {
8         
public float radius = 1f;
9
10         
private void Start()
11         {
12             GetComponent<MeshFilter>().mesh = MeshE.Octahedron(radius);
13         }
14     }
15 }


Gõ tìm kiếm nhanh...